﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ERP.ERPSystem.ProductionSystem.Dto;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 生产废料服务接口
    /// </summary>
    public interface IProductionWasteOrderService : IApplicationService
    {
        /// <summary>
        /// 获取生产废料单分页列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedResultDto<ProductionWasteOrderDto>> GetListAsync(GetProductionWasteOrderInputDto input);

        /// <summary>
        /// 创建生产废料单
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ProductionWasteOrderDto> CreateAsync(CreateUpdateProductionWasteOrderDto input);

        /// <summary>
        /// 更新生产废料单
        /// </summary>
        /// <param name="id"></param>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ProductionWasteOrderDto> UpdateAsync(int id, CreateUpdateProductionWasteOrderDto input);

        /// <summary>
        /// 删除生产废料单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteAsync(int id);
    }
}
